template(name="newBoardList")
  .wrapper.smart-scrollbar
    .lg-container
      .navlists
        #entSidebar.ent-sidebar.aside
          .navlist
              i.iconfont.icon-zhankai
          .navlist
            .list1
              i.iconfont.icon-yonghu2
              //- h4
              .list2 我的看板
            span
              i.iconfont.icon-xiaoyuhao-
          ul.nav
            //- .navlist1(title="星标看板")星标看板
            .navlist1(title="个人看板")个人看板
            //- .navlist1公开看板
          .navlist
            .list1
              i.iconfont.icon-mind-map
              .list2 我的脑图
            span
              i.iconfont.icon-xiaoyuhao-
          ul.nav
            .navlist1(title="个人脑图")个人脑图
      .home-content.centent
        //- .boardlist-section
        //-   .board_category
        //-     .categoray-name
        //-       i.fa.fa-star-o
        //-     h5 星标看板
        //-   .board-group.row.js-my-board
        //-     ul.board-list.clearfix.js-boards
        //-       each starredBoards
        //-         li(class="{{#if isStarred}}starred{{/if}}").class-style.js-board
        //-           if isInvited
        //-             .board-list-item
        //-               span.details.detailsOne
        //-                 span.board-list-item-name= title
        //-                 i.fa.js-star-board(
        //-                   class="fa-star{{#if isStarred}} is-star-active{{else}}-o{{/if}}"
        //-                   title="{{_ 'star-board-title'}}")
        //-                 p.board-list-item-desc {{_ 'just-invited'}}
        //-                 button.js-accept-invite.primary {{_ 'accept'}}
        //-                 button.js-decline-invite {{_ 'decline'}}
        //-           else
        //-             a.js-open-board.board-list-item(href="{{pathFor 'board' id=_id slug=slug}}")
        //-               span.details.detailsOne
        //-                 span.board-list-item-name
        //-                   +viewer
        //-                     = title
        //-                 i.fa.js-star-board(
        //-                   class="fa-star{{#if isStarred}} is-star-active{{else}}-o{{/if}}"
        //-                   title="{{_ 'star-board-title'}}")
        //-                 p.board-list-item-desc
        //-                   +viewer
        //-                     = description
        //-                 if hasSpentTimeCards
        //-                   i.fa.js-has-spenttime-cards(
        //-                     class="fa-circle{{#if hasOvertimeCards}} has-overtime-card-active{{else}} no-overtime-card-active{{/if}}"
        //-                     title="{{#if hasOvertimeCards}}{{_ 'has-overtime-cards'}}{{else}}{{_ 'has-spenttime-cards'}}{{/if}}")
        //-                 if isMiniScreen
        //-                   i.fa.board-handle(
        //-                       class="fa-arrows"
        //-                       title="{{_ 'Drag board'}}")
        .boardlist-section
          .board_category
            .categoray-name
              i.iconfont.icon-yonghu2
            h5 个人看板
          .board-group.row.js-my-board
            ul.board-list.clearfix.js-boards
              li.js-add-board
                a.board-list-item.label.board-label
                  span.js-add-class
                    i.iconfont.icon-hao
                    span.fa-plus1
                    &nbsp;{{_ 'add-board'}}
              each boards
                li(class="{{#if isStarred}}starred{{/if}}").class-style.js-board
                  if isInvited
                    .board-list-item
                      span.details.detailsOne
                        span.board-list-item-name= title
                        i.fa.js-star-board(
                          class="fa-star{{#if isStarred}} is-star-active{{else}}-o{{/if}}"
                          title="{{_ 'star-board-title'}}")
                        p.board-list-item-desc {{_ 'just-invited'}}
                        button.js-accept-invite.primary {{_ 'accept'}}
                        button.js-decline-invite {{_ 'decline'}}
                  else
                    a.js-open-board.board-list-item(href="{{pathFor 'board' id=_id slug=slug}}")
                      span.details.detailsOne
                        span.board-list-item-name
                          +viewer
                            = title
                        i.fa.js-star-board(
                          class="fa-star{{#if isStarred}} is-star-active{{else}}-o{{/if}}"
                          title="{{_ 'star-board-title'}}")
                        p.board-list-item-desc
                          +viewer
                            = description
                        if hasSpentTimeCards
                          i.fa.js-has-spenttime-cards(
                            class="fa-circle{{#if hasOvertimeCards}} has-overtime-card-active{{else}} no-overtime-card-active{{/if}}"
                            title="{{#if hasOvertimeCards}}{{_ 'has-overtime-cards'}}{{else}}{{_ 'has-spenttime-cards'}}{{/if}}")
                        if isMiniScreen
                          i.fa.board-handle(
                              class="fa-arrows"
                              title="{{_ 'Drag board'}}")
                        unless isMiniScreen
                          if isSandstorm
                            i.fa.js-clone-board(
                                class="fa-clone"
                                title="{{_ 'duplicate-board'}}")
                            i.fa.js-archive-board(
                                class="fa-archive"
                                title="{{_ 'archive-board'}}")
                          else if isAdministrable
                            i.fa.js-clone-board(
                                class="fa-clone"
                                title="{{_ 'duplicate-board'}}")
                            i.fa.js-archive-board(
                                class="fa-archive"
                                title="{{_ 'archive-board'}}")
                          else if currentUser.isAdmin
                            i.fa.js-clone-board(
                                class="fa-clone"
                                title="{{_ 'duplicate-board'}}")
                            i.fa.js-archive-board(
                                class="fa-archive"
                                title="{{_ 'archive-board'}}")
        //- .boardlist-section
        //-   .board_category
        //-     .categoray-name
        //-       i.fa.fa-globe
        //-     h5 公共看板
        //-   .board-group.row.js-my-board
        //-     ul.board-list.clearfix.js-boards
        //-       li.js-add-board
        //-         a.board-list-item.label.board-label
        //-           span.js-add-class
        //-             i.iconfont.icon-hao
        //-             span.fa-plus1
        //-             &nbsp;{{_ 'add-board'}}
        //-       each publicBoards
        //-         li(class="{{#if isStarred}}starred{{/if}}").class-style.js-board
        //-           if isInvited
        //-             .board-list-item
        //-               span.details.detailsOne
        //-                 span.board-list-item-name= title
        //-                 i.fa.js-star-board(
        //-                   class="fa-star{{#if isStarred}} is-star-active{{else}}-o{{/if}}"
        //-                   title="{{_ 'star-board-title'}}")
        //-                 p.board-list-item-desc {{_ 'just-invited'}}
        //-                 button.js-accept-invite.primary {{_ 'accept'}}
        //-                 button.js-decline-invite {{_ 'decline'}}
        //-           else
        //-             a.js-open-board.board-list-item(href="{{pathFor 'board' id=_id slug=slug}}")
        //-               span.details.detailsOne
        //-                 span.board-list-item-name
        //-                   +viewer
        //-                     = title
        //-                 i.fa.js-star-board(
        //-                   class="fa-star{{#if isStarred}} is-star-active{{else}}-o{{/if}}"
        //-                   title="{{_ 'star-board-title'}}")
        //-                 p.board-list-item-desc
        //-                   +viewer
        //-                     = description
        //-                 if hasSpentTimeCards
        //-                   i.fa.js-has-spenttime-cards(
        //-                     class="fa-circle{{#if hasOvertimeCards}} has-overtime-card-active{{else}} no-overtime-card-active{{/if}}"
        //-                     title="{{#if hasOvertimeCards}}{{_ 'has-overtime-cards'}}{{else}}{{_ 'has-spenttime-cards'}}{{/if}}")
        //-                 if isMiniScreen
        //-                   i.fa.board-handle(
        //-                       class="fa-arrows"
        //-                       title="{{_ 'Drag board'}}")
        //-                 unless isMiniScreen
        //-                   if isSandstorm
        //-                     i.fa.js-clone-board(
        //-                         class="fa-clone"
        //-                         title="{{_ 'duplicate-board'}}")
        //-                     i.fa.js-archive-board(
        //-                         class="fa-archive"
        //-                         title="{{_ 'archive-board'}}")
        //-                   else if isAdministrable
        //-                     i.fa.js-clone-board(
        //-                         class="fa-clone"
        //-                         title="{{_ 'duplicate-board'}}")
        //-                     i.fa.js-archive-board(
        //-                         class="fa-archive"
        //-                         title="{{_ 'archive-board'}}")
        //-                   else if currentUser.isAdmin
        //-                     i.fa.js-clone-board(
        //-                         class="fa-clone"
        //-                         title="{{_ 'duplicate-board'}}")
        //-                     i.fa.js-archive-board(
        //-                         class="fa-archive"
        //-                         title="{{_ 'archive-board'}}")
        .boardlist-section2
          .board_category
            .categoray-name
              i.iconfont.icon-mind-map
            h5 个人脑图
          .board-group.row.js-my-mindmap
            ul.board-list.clearfix.js-mindMaps
              li.js-add-mindmap
                a.board-list-item.label.board-label
                 span.js-add-class
                    i.iconfont.icon-hao
                    span.fa-plus1
                    新建脑图
              each mindMaps
                li(class=colorClass).js-mindMap
                  a.js-open-board.mindMap-list-item
                      span.details
                        span.board-list-item-name
                          +viewer
                            = name
                        p.board-list-item-desc
                          +viewer
                            = description
                        if isMiniScreen
                          i.fa.board-handle(
                              class="fa-arrows"
                              title="{{_ 'Drag board'}}")
                        unless isMiniScreen
                          if isSandstorm
                            i.fa.js-clone-mindMap(
                                class="fa-clone"
                                title="复制脑图")
                            i.fa.js-archive-mindMap(
                                class="fa-archive"
                                title="将脑图归档")
                          else if isAdministrable
                            i.fa.js-clone-mindMap(
                                class="fa-clone"
                                title="复制脑图")
                            i.fa.js-archive-mindMap(
                                class="fa-archive"
                                title="将脑图归档")
                          else if currentUser.isAdmin
                            i.fa.js-clone-mindMap(
                                class="fa-clone"
                                title="复制脑图")
                            i.fa.js-archive-mindMap(
                                class="fa-archive"
                                title="将脑图归档")
                          else
                            i.fa.js-clone-mindMap(
                                class="fa-clone"
                                title="复制脑图")
                            i.fa.js-archive-mindMap(
                                class="fa-archive"
                                title="将脑图归档")

template(name="newBoardListHeaderBar")
  h1 {{_ title }}
  //.board-header-btns.right
  //  a.board-header-btn.js-open-archived-board
  //    i.fa.fa-archive
  //    span {{_ 'archives'}}
  //  a.board-header-btn(href="{{pathFor 'board' id=templatesBoardId slug=templatesBoardSlug}}")
  //    i.fa.fa-clone
  //    span {{_ 'templates'}}

template(name="boardClonePopup")
  p {{_ "boardClone-delete-pop"}}
  button.js-confirm.negate.full(type="submit") {{_ 'ok'}}

template(name="mindMapArchivePopup")
  p {{_ "mindMap-archive-pop"}}
  button.js-confirm.negate.full(type="submit") {{_ 'delete'}}

template(name="boardArchivePopup")
  p {{_ "board-archive-pop"}}
  button.js-confirm.negate.full(type="submit") {{_ 'delete'}}

template(name="mindMapClonePopup")
  p {{_ "mindMap-clone-pop"}}
  button.js-confirm.negate.full(type="submit") {{_ 'ok'}}
